<<<<<<< .mine
<?php

require '/classes/Connection.class.php';

$conn = new CONNECTION();

$q = mysql_real_escape_string($_GET['q']);

$sqlCar = "SELECT * FROM Car where locate('$q',model) > 0 order by locate('$q',model) limit 50";

$resCar = mysql_query($sqlCar);

while ($campo = mysql_fetch_array($resCar)) {
    
    $model = $campo['model'];
    $model1 = addslashes($model);
    $html = preg_replace("/(" . $q . ")/i", "<span style=\"font-weight:bold\">\$1</span>", $model1);
    echo "<li onselect=\"this.setText('$model1').setValue('$model1');\">$html</li>\n";
}
?>=======
<?php

require '/classes/Connection.class.php';

$conn = new CONNECTION();

$q = mysql_real_escape_string($_GET['q']);

$sqlCar = "SELECT * FROM Car where locate('$q',model) > 0 order by locate('$q',model) limit 50";

$resCar = mysql_query($sqlCar);

while ($campo = mysql_fetch_array($resCar)) {
    $model = $campo['model'];
    $model1 = addslashes($model);
    $html = preg_replace("/(" . $q . ")/i", "<span style=\"font-weight:bold\">\$1</span>", $model1);
    echo "<li onselect=\"this.setText('$model1').setValue('$model1');\">$html</li>\n";
}
?>>>>>>>> .r194
